package com.wjf.userservice.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private Long id;
    private String username;
    private String password;
    private String nickname;
    private String email;
    private String phone;
    private String avatar;
    private Integer status;
    private Integer vipLevel;
    private Date vipExpireTime;
    private Date createTime;
    private Date updateTime;

    // 关联字段，不对应数据库字段
    private List<Role> roles;        // 用户拥有的角色列表
    private List<Permission> permissions; // 用户拥有的所有权限列表
}
